Report post

Is the Web Cryptography API asynchronous?

Note: The Web Cryptography API is asynchronous, so I use the async/await syntax in this article for concision. The Web Cryptography API was initially exposed through a nonstandard interface called Crypto, but it was later standardized through a new interface called SubtleCrypto.

What's new in the web Crypto API?

In order to avoid confusion, methods and properties of this interface have been removed from browsers implementing the Web Crypto API, and all Web Crypto API methods are available on a new interface: SubtleCrypto. The Crypto.subtle property gives access to an object implementing it. Tip: you can click/tap on a cell for more information.

Why do I need a web Crypto API?

Depending on your environment and requirements, the Web Crypto API may be needed required or suitable to perform cryptographic operations. For example, it is commonly used with Edge Middleware and Edge functions when working with Next.js + Vercel.

Related articles

The World's Leading Crypto Trading Platform

Get my welcome gifts